#define _CRT_SECURE_NO_WARNINGS

#include"DList.h"

void test()
{
	ListNode* head = ListCreate();

	ListInsert(head, 1);
	ListInsert(head, 2);
	ListInsert(head, 3);
	ListInsert(head, 4);
	ListErase(head->_next);
	ListErase(head->_next);
	ListErase(head->_next);

	ListPushBack(head, 6);
	ListPushBack(head, 8);
	ListPushBack(head, 7);
	
	ListPushFront(head, 19);
	ListPushFront(head, 13);
	ListPushFront(head, 12);

	ListPopBack(head);
	ListPopBack(head);

	ListPopFront(head);
	ListPopFront(head);

	ListNode* node = ListFind(head, 19);



	ListPrint(head);

	ListDestory(head);
	head = NULL;
}

int main()
{
	test();


	return 0;
}